package com.chen.dao;

import com.chen.pojo.Type;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TypeDao {

    int saveType(Type type);

    Type getTypeByName(String name);

    Type getType(Long id);

    List<Type> listType();

    int updateType(Long id, String name);

    void deleteType(Long id);

}
